package com.wang.mall.oauth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wang.mall.oauth.bean.SysRole;
import com.wang.mall.oauth.mapper.SysRoleMapper;
import org.springframework.stereotype.Service;


import com.wang.mall.oauth.service.SysRoleService;

import java.util.List;

@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements SysRoleService{

    @Override
    public List<SysRole> findByUserId(Long userId) {
        return baseMapper.findRoleByUserId(userId);
    }
}
